
//
//  InstituIntroListCell.m
//  ShangHaiTuJI
//
//  Created by xiaoxiangtuji on 2017/9/19.
//  Copyright © 2017年 xiaoxiangtuji. All rights reserved.
//

#import "InstituIntroListCell.h"

@implementation InstituIntroListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.titleLabel = [[UILabel alloc] init];
        self.titleLabel.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:self.titleLabel];
        [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.contentView.mas_centerY);
            make.width.mas_equalTo(scaleLeftAndRight(100));
            make.height.mas_equalTo(scaleTopAndBottom(20));
            make.left.equalTo(self.contentView.mas_left).offset(scaleLeftAndRight(10));
        }];
        self.detaLabel = [[UILabel alloc] init];
        self.detaLabel.textAlignment = NSTextAlignmentRight;
        self.detaLabel.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:self.detaLabel];
        [self.detaLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.bottom.top.equalTo(self.contentView);
            make.right.equalTo(self.contentView.mas_right).offset(scaleLeftAndRight(-10));
            make.left.equalTo(_titleLabel.mas_right).offset(scaleLeftAndRight(60));
        }];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
